
package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.IntegralStore;
import cn.wolfcode.trip.base.domain.TaxiOrder;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.service.IIntegralStoreService;
import cn.wolfcode.trip.base.service.ITaxiOrderService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/taxiOrders")
public class TaxiOrderController {

    @Autowired
    private ITaxiOrderService taxiOrderService;

    //查询所有订单
    @GetMapping()
    public Object selectList(QueryObject qo){
        PageInfo<TaxiOrder> pageInfo = taxiOrderService.query(qo);
        return pageInfo;
    }

}